<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />


<!-- 整体页面布局 -->
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/mall.css' rel='stylesheet' type='text/css' />

<!-- 基础js调用 -->
<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/mall.js'></script>





<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<script type="text/javascript" src="/pintuan/Public/Member/js/operamasks-ui.min.js"></script>


<!-- 单日期日历插件 -->
<link href="/pintuan/Public/Member/css/datepicker.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/pintuan/Public/Member/js/datepicker.js"></script>

<!-- 双日期日历插件 -->
<link href='/pintuan/Public/Member/css/daterangepicker.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/moment.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/daterangepicker.js'></script>

<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
var domain={
        www:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        static:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        img:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        file:'<?php echo C('WEB_ABSOLUTE_URL');?>',
        kf:'<?php echo C('WEB_ABSOLUTE_URL');?>'
};
</script>

<script type="text/javascript" src="/pintuan/Public/Member/api/js/product.js"></script>


<script type='text/javascript'>
	$(document).ready(product_obj.detail_tuan);
</script>




</head>

<body>
    <div id="iframe_page">
        <div class="iframe_content">
            <div class="r_nav">
                <ul>
                  <li class="<?php if((ACTION_NAME) == "index"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/index');?>">拼团订单</a></li>
	              <li class="<?php if((ACTION_NAME) == "list_product"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/list_product');?>">产品列表</a></li>
	              <li class="<?php if((ACTION_NAME) == "list_tuan"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/list_tuan');?>">成团列表</a></li>
	              <li class="<?php if((ACTION_NAME) == "liucheng"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/liucheng');?>">购物规则</a></li>
              	  <li class="<?php if((ACTION_NAME) == "list_tui"): ?>cur<?php endif; ?>"><a href="<?php echo U('Pintuan/list_tui');?>">退款列表</a></li>
               </ul>
            </div>
            

<div id="orders" class="r_con_wrap">
	<div class="control_btn"><a href="<?php echo U('list_tuan');?>" class="btn_gray">返 回</a></div>
    <div class="cp_title">
        <div id="cp_view" class="cur">信息详情</div>
        <!-- <div id="cp_mod">信息修改</div> -->
    </div>
    <div class="detail_card">
        <form id="orders_mod_form" method="post" action="<?php echo U('detailChange');?>">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="order_info">
                <tr>
                    <td width="8%" nowrap>商品名称：</td>
                    <td width="92%"><?php echo ($grouparr["productname"]); ?></td>
                </tr>
                <tr>
                    <td width="8%" nowrap>成团类型：</td>
                    <td width="92%"><?php echo ($grouparr["groupnumber"]); ?>&nbsp;人团</td>
                </tr>
                 <tr>
                    <td width="8%" nowrap>成团价：</td>
                    <td width="92%">
                       <?php echo ($grouparr["price"]); ?>
                    </td>
                </tr>
                <tr>
                    <td width="8%" nowrap>已参团人数：</td>
                    <td width="92%"><?php echo ($grouparr["hasjoin"]); ?></td>
                </tr>
                <tr>
                    <td width="8%" nowrap>参团人员：</td>
                    <td width="92%">
                    	<table style="width:80%;">
                    		<tr><td>昵称</td><td>联系人</td><td>地址</td><td>联系方式</td><td>团位置</td><td>操作</td></tr>
                    		<?php if(is_array($grouplogarr)): $i = 0; $__LIST__ = $grouplogarr;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><tr>
                    				<td><?php echo ($v["nickname"]); ?></td>
                    				<td><?php echo ($v["linkman"]); ?></td>
                    				<td><?php echo ($v["address"]); ?></td>
                    				<td><?php echo ($v["linktel"]); ?></td>
                    				<td><?php if($v["isleader"] == 0): ?>团员<?php else: ?>团长<?php endif; ?></td>
                    				<td><a href="<?php echo U('Pintuan/index_detail',array('id'=>$v['orderid']));?>">查看更多>></a></td>
                    			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
                    	</table>
                    </td>
                </tr>
                <tr>
                    <td width="8%" nowrap>团创建时间：</td>
                    <td width="92%"><?php echo ($grouparr["createtime"]); ?></td>
                </tr>
                 <tr>
                    <td width="8%" nowrap>过期时间：</td>
                    <td width="92%"><?php if($grouparr['period'] == 0): ?>无限期<?php else: echo ($grouparr["period"]); endif; ?></td>
                </tr>
                <tr>
                    <td width="8%" nowrap>团状态：</td>
                    <td width="92%">
                    	<?php if($grouparr["status"] == 1): ?>正在进行
                    		<?php elseif($grouparr["status"] == 2): ?>已成团
                    		<?php elseif($grouparr["status"] == 3): ?>已发货
                    		<?php elseif($grouparr["status"] == 4): ?>已完成
                    		<?php elseif($grouparr["status"] == 5): ?>已取消
                    		<?php else: ?>已过期<?php endif; ?>
                    </td>
                </tr>
                <tr>
                    <td width="8%" nowrap>团是否过期：</td>
                    <td width="92%"><?php if($grouparr["isexpired"] == 0): ?>未过期<?php else: ?>已过期<?php endif; ?></td>
                </tr>
                
               <!-- <tr class="cp_item_mod">
                   <td></td>
                   <td><input type="" class="btn_green" name="submit_button" value="提交保存" /><input type="button" class="back btn_gray" name="back" value="取消" /></td>
               </tr> -->
           </table>
          
		</form>
	    <div class="blank12"></div>
	</div>
</div>  

    
         </div>
	</div>
</body>
</html>